package com.jiepu.daily.corejava.advanceed.part2.day0724;

/**
 * @Description:
 * @author: xinjie.txt
 * @date: 2020/7/24  8:06
 */
public class Demo {
	public static void main(String[] args) {
		int[] nums = new int[]{100,0,0,0,0,0,0,1,0,0};
		int[] nums1 = new int[3];


		int result = 0;
		for (int i = 0, len = nums.length; i < len; i++) {
			result +=jie(nums[i]);
		}


		Demo2<String> demo2 = new Demo2<>();
		demo2.fum();
	}

	public static int jie(int num) {
		int sum = 1;
		for (int i = 0; i < num; i++) {
			sum *= num;
		}
		return sum;
	}
}
